local sk__fenying_active = fk.CreateSkill {

  name = "sk__fenying_active",

  tags = {  },

}



sk__fenying_active:addEffect("active", {
  name = "sk__fenying_active",
  card_num =function ()
    return Self:getMark("sk__fenying-tmp")[1]
  end,
  target_num = 1,
  card_filter =function(self, player, to_select, selected)
    return type(selected)=="table" and #selected < player:getMark("sk__fenying-tmp")[1] and not player:prohibitDiscard(to_select)
  end,
  target_filter =function (self, player, to_select, selected, selected_cards)
    return #selected == 0 and table.contains(player:getMark("sk__fenying-tmp")[2], to_select.id)
  end,
})

return sk__fenying_active